package com.spring.component.test.xml;

import com.spring.component.xml.annotation.Level;
import com.spring.component.xml.annotation.Xml;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @ClassName: Body
 * @Description:
 * @author: liushihua
 * @date: 2019/1/8
 **/
@Getter
@Setter
@ToString
@Level(value = 1, xmlName = "BODY", xmls = {
    @Xml(attrName = "userId", isElement = true),
    @Xml(attrName = "userName", isElement = true)
})
public class Body {
  private long userId;
  private String userName;
  @Xml(xmlName = "Date", isElement = true)
  private Date date;
}
